<!-- node title and menu -->
<div 
  taskId='<?php echo $node->id ?>' 
  id='node-<?php echo $node->id ?>' 
  class='result-<?php echo $node->getResult() ?> result node'
>
  <div id='node-item-<?php echo $node->id ?>' class='result-title'>
    <a name='node-a-<?php echo $node['id'] ?>'></a>
    <?php include_partial('tasks/nodeTitle', array('node'=>$node)) ?>
  </div>
  <div class='nodeContent' id='node-content-<?php echo $node->id ?>' <?php if($node->getNode()->isLeaf()): ?>style='display:none'<?php endif; ?> >
  <!-- node description and tests -->
  <?php if($node->getNode()->hasChildren()): 
    $children = $node->getNode()->getChildren();
    $count = $children ? $children->count() : 0;
  ?>
  <?php foreach( $children as $child): ?>
    <?php include_partial( 'tasks/node', array('node'=>$child) ) ?>
  <?php endforeach; ?>
  <?php endif; ?>
  </div>
</div>